<%-- 
    Document   : colegiado
    Created on : 5/02/2010, 03:37:36 PM
    Author     : Cristian
--%>

<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<link href="/tramite/css/admin_1.css" rel="stylesheet" type="text/css" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <t:div>
        <h:form styleClass="fondoFormulariosyPanel">                        
            <a4j:outputPanel ajaxRendered="true">
                <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                            warnClass="warnClass" fatalClass="fatalClass" showDetail="true" errorStyle="color:red;"
                            warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
            </a4j:outputPanel>
            <h:panelGrid styleClass="fondoFormulariosyPanel">
                <h:panelGrid columns="1" styleClass="fondoFormulariosyPanel" width="100%">
                    <h:outputLabel  value="FOTO" />
                </h:panelGrid>
                <h:graphicImage rendered="#{TramitesController.colFoto.cimRuta==null}" url="/img/sinFoto.jpg" alt="Foto" />
                <a4j:mediaOutput rendered="#{TramitesController.colFoto.cimRuta!=null}" element="img" session="true"
                                 align="middle" createContent="#{TramitesController.drawImagenFoto}" mimeType="image/jpg" styleClass="imagenFoto" />
                <h:panelGrid columns="1" styleClass="fondoFormulariosyPanel" width="100%">
                <h:outputLabel  value="FIRMA" />
            </h:panelGrid>
                <h:graphicImage rendered="#{TramitesController.colFirma.cimRuta==null}" url="/img/sinFirma.jpg" alt="Firma" />
                <a4j:mediaOutput rendered="#{TramitesController.colFirma.cimRuta!=null}" element="img" session="true"
                                 align="middle" createContent="#{TramitesController.drawImagenFirma}" mimeType="image/jpg" styleClass="imagenFirma" />
                <h:panelGrid columns="1" styleClass="fondoFormulariosyPanel" width="100%">
                <h:outputLabel  value="SELLOS" />
            </h:panelGrid>
                <h:graphicImage rendered="#{TramitesController.listaSellos==null}" url="/imagenColegiatura/sinSello.jpg" alt="Sello" />
                <rich:dataTable rendered="#{TramitesController.listaSellos!=null}" value="#{TramitesController.listaSellos}"
                                var="sellos" rowKeyVar="sello" rows="3" border="0" id="TableSellos">
                    <rich:column>
                        <h:graphicImage rendered="#{sellos.cimRuta==null}" url="/img/sinSello.jpg" alt="Sello" />
                        <a4j:mediaOutput value="#{sello}" rendered="#{sellos.cimRuta!=null}" element="img" session="true"
                                         align="middle" createContent="#{TramitesController.drawImagenSellos}" mimeType="image/jpg" styleClass="imagenSello" />
                    </rich:column>
                </rich:dataTable>

            </h:panelGrid>
        </h:form>
    </t:div>
</f:view>